package org.eiahe.hr.salary.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.eiahe.hr.salary.domain.EmployeePhoneAssociation;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 员工手机关联视图对象 hr_employee_phone_association
 *
 * @author zhangnn
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = EmployeePhoneAssociation.class)
public class EmployeePhoneAssociationVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 关联ID
     */
    @ExcelProperty(value = "关联ID")
    private Long associationId;

    /**
     * 租户ID
     */
    @ExcelProperty(value = "租户ID")
    private String tenantId;

    /**
     * 工号
     */
    @ExcelProperty(value = "工号")
    private String employeeNo;

    /**
     * 手机号
     */
    @ExcelProperty(value = "手机号")
    private String phoneNumber;

    /**
     * 关联时间
     */
    @ExcelProperty(value = "关联时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date associationTime;

    /**
     * 验证状态(0未验证 1已验证)
     */
    @ExcelProperty(value = "验证状态")
    private String verificationStatus;

    /**
     * 验证方式(短信验证码/人脸识别)
     */
    @ExcelProperty(value = "验证方式")
    private String verificationMethod;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
